cod_register_class

Syntax

native cod_register_class(const name[], const desc[], const faction[], weapons, health, intelligence, strength, stamina, condition, flag = NONE);

Usage

name
Class name
desc
Class description
faction
Class faction, can be empty
weapons
Class weapons
health
Class health bonus
intelligence
Class intelligence bonus
strength
Class strength bonus
stamina
Class stamina bonus
condition
Class condition bonus
flag
Class access flag

Description

Registers new class.

Note

Weapons can be bitsum, for example for both M4A1 and AK47: (1<<CSW_M4A1)|(1<<CSW_AK47).

Return

Class index